package com.wuhuahe.learning.lagou.servie.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient(name = "lagou-service-resume", fallback = ResumeFeignApiFallback.class, path = "/resume")
//@RequestMapping("/resume")  // 启用了hystrix熔断，则类上的根路径，需要写在@FeignClient注解的path属性里面
public interface ResumeFeignApi {


    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable("userId") Long userId);

    @GetMapping("/openstate2/{userId}")
    public String findDefaultResumeState2(@PathVariable("userId") Long userId);


    @GetMapping("/openstate3/{userId}")
    public String findDefaultResumeState3(@PathVariable("userId") Long userId);
}
